package com.yanqu.road.entity.grandchild;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Objects;

@FieldTypeAnnotation(tableName = "t_u_grand_child_talent_book")
public class GrandChildTalentBook extends DataObject {
    private long userId;
    private int talentId;
    private long createTime;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (!Objects.equals(this.userId, userId)) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getTalentId() {
        return talentId;
    }

    public void setTalentId(int talentId) {
        if (!Objects.equals(this.talentId, talentId)) {
            this.talentId = talentId;
            setUpdateOption();
        }
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        if (!Objects.equals(this.createTime, createTime)) {
            this.createTime = createTime;
            setUpdateOption();
        }
    }
}
